package com.jishaokang.service;

import com.jishaokang.base.Result;
import com.jishaokang.model.dto.Live;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * Created by NANA_Final on 2019/6/21.
 */
public interface LiveService {
    Result selectLive(Live live);

    Result addLive(Live live) throws IOException;

    Result deleteLiveByLiveId(Live live) throws IOException;

    Result uploadLiveImage(String token, Integer liveId, MultipartFile imageFile, HttpServletRequest request) throws IOException;

    Result updateWatchTotal(Live live);

    Result deleteLiveByUserId(Live live);

    Result selectLiveByLiveId(Live live);
}
